package com.lv.xulin.demopro;

import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import butterknife.Bind;
import butterknife.ButterKnife;


/**
 * Created by Xulin on 2017/4/7.
 */

public class AnimActivity extends Activity implements View.OnClickListener {

    @Bind(R.id.fadeButton)
    Button fadeButton;
    @Bind(R.id.zoomButton)
    Button zoomButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_anim);
        ButterKnife.bind(this);

        fadeButton.setOnClickListener(this);
        zoomButton.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.zoomButton:
                Intent intent0=new Intent(this,AnimZoomActivity.class);
                startActivity(intent0);
                overridePendingTransition(R.anim.hyperspace_in, R.anim.hyperspace_out);
                break;
            case R.id.fadeButton:
                Intent intent1=new Intent(this,AnimFadeActivity.class);
                startActivity(intent1);
                overridePendingTransition(R.anim.push_up_in, R.anim.push_up_out);
                break;
            default:
                break;
        }

    }
}
